﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main_Wap.Master" Inherits="System.Web.Mvc.ViewPage<tophd.Models.Entity.Video>" %>

<%@ Import Namespace="tophd.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    hd.langmauviet.vn - <%=Model.Name %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var video = (Video)ViewData["WatchVideo"];
       var hotVideo = (List<HotItem>)ViewData["hotVideo"];
       %>
    <div id="searchbox">
        <div class="keyword">
            <span class="hot">Chủ đề HOT</span>:
            <% if (!ReferenceEquals(hotVideo, null))
               {
                   for (int i = 0; i < hotVideo.Count; i++)
                   {
                       if (i < hotVideo.Count - 1)
                       { %>
            <a href="/Video/DetailVideo?videoId=<%= hotVideo[i].VideoId %>">
                <%= hotVideo[i].Name%></a> <span style="font-size: 12px;">|</span>
            <% }
                       else
                       {%>
            <a href="/Video/DetailVideo?videoId=<%= hotVideo[i].VideoId %>">
                <%= hotVideo[i].Name%></a>
            <%}
                   }
               }%>
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="wap_content_image_detail">
        <center>
            <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none"
                width="80%" height="400" poster="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=video.Icon%>"
                data-setup="{}">
                <source src="<%=video.Url%>" type='video/mp4' />
 
            </video>
            <div class="left clear" style="width: 100%; margin-top: 20px;">
                <%=video.Name %>
            </div>
        </center>
        <div class="wap_couldyoulike clear">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
